package com.tyjc.prizeOptimize;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

//优化后的对阵组合
public class OptimizedMatch implements Comparable<OptimizedMatch>,Cloneable, Serializable {

	@Override
	public OptimizedMatch clone() {
		try {
			return (OptimizedMatch) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			return null;
		}
	}

	private BigDecimal singlePrize;

	private BigDecimal totalPrize;

	private Integer multiple;

	private String teamId;

	private ArrayList<ItemSelect> itemSelects;

	private String teams;

	public BigDecimal getSinglePrize() {
		return singlePrize;
	}

	public void setSinglePrize(BigDecimal singlePrize) {
		this.singlePrize = singlePrize;
	}

	public BigDecimal getTotalPrize() {
		return totalPrize;
	}

	public void setTotalPrize(BigDecimal totalPrize) {
		this.totalPrize = totalPrize;
	}

	public Integer getMultiple() {
		return multiple;
	}

	public void setMultiple(Integer multiple) {
		this.multiple = multiple;
	}

	public ArrayList<ItemSelect> getItemSelects() {
		return itemSelects;
	}

	public void setItemSelects(ArrayList<ItemSelect> itemSelects) {
		this.itemSelects = itemSelects;
	}

	@Override
	public int compareTo(OptimizedMatch o) {
		return singlePrize.compareTo(o.getSinglePrize());
	}


	public String getTeams() {
		return teams;
	}

	public void setTeams(String teams) {
		this.teams = teams;
	}

	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}
}